package com.tqjc.plccontrol.entity;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * @projectName: BaotouSteel
 * @className: PointInfo
 * @author: Patienyon
 * @description: 点位信息表
 * @date: 2023/6/13 9:59
 */

@TableName(value = "point_info")
@Data
@EqualsAndHashCode(callSuper = true)
@DS("baotou")
@Schema(description = "PLC点位信息表")
public class PointInfo extends Model {
    /**
     * 主键id
     */
    @TableId(type = IdType.AUTO)
    @Schema(description = "主键ID")
    private Integer id;


    @Schema(description = "数采点位SN")
    private String sn;
    /**
     * 上级PLC的sn
     */
    @Schema(description = "上级PLC的sn")
    private String plcSn;
    /**
     * 所属连接的SN
     */
    @Schema(description = "所属连接的SN")
    private String connectSn;
    /**
     * 点位名称
     */
    @Schema(description = "点位名称")
    private String name;
    /**
     * 点位地址
     */
    @Schema(description = "点位地址")
    private String address;
    /**
     * 数据类型
     */
    @Schema(description = "数据类型")
    private Integer dataType;

    /**
     * 设备编号
     */
    @Schema(description = "设备编号")
    private String macSn;
}
